package com.example.mideaoem.data.dehumidificator;

import com.example.mideaoem.data.BaseDevice;

public class DeHumidification extends BaseDevice{

	public DeHumidification(DeHumidification status) {
		this.powerMode = status.powerMode;
		this.setMode = status.setMode;
		this.filterShow = status.filterShow;
		this.tankShow = status.tankShow;
		this.ionSetSwitch = status.ionSetSwitch;
		this.humidity = status.humidity;
		this.humidity_dot = status.humidity_dot;
		this.humidity_dot_set = status.humidity_dot_set;
		this.humidity_set = status.humidity_set;
		this.isDisplay = status.isDisplay;
		this.windSpeed = status.windSpeed;
	}
	
	public DeHumidification() {
		
	}
	
	// bit0 电源状态：0关机，1开机
    public int powerMode = 1;
    public int setMode = 0;// 设定模式
    public boolean filterShow;//滤网
    public boolean tankShow = false;//水满提醒
    public int humidity;//当前湿度
    public int humidity_dot = 0;//当前湿度（小数）
    public int windSpeed = 0;//风速
    public int humidity_set = 0;//设定湿度
    public int humidity_dot_set = 0;//设定湿度（小数）
    
    protected boolean isDisplay;
    protected boolean ionSetSwitch = true;//负离子 
	
    @Override
	public String toString() {
		return "DeHumidification [开关=" + powerMode + ", 模式="
				+ setMode + ", 过滤网=" + filterShow + ", 水箱="
				+ tankShow + ", 当前湿度="
				+ humidity + ", 当前湿度（小数）=" + humidity_dot + ", 风速="
				+ windSpeed + ", 设置湿度=" + humidity_set
				+"]";
	}
	// bit2 模式恢复,默认是0
    private int modeRecovery = 0;
    // bit4 定时方式:0-相对定时1-绝对定时
    private int timingMode = 0;
    // bit5 快检状态:默认0
    private int quackCheckStatus = 0;
    // bit7 故障标志
    private int faultMark = 0;

    // 微调
    private int sharpTurning = 0;

    // 4
    // 移动终端定时信息
    protected int mobileTiming = 0;
    // 定时开机时间，分
    protected byte timingOpenMinute = 0;
    // 定时开－绝对小时
    protected byte timingOpenHour = 0;
    // 定时开,0- 关,1- 开
    protected int timingOpenMark = 0;

    // 5
    // 定时关－绝对分
    protected byte timingCloseMinute = 0x03;
    // 定时关－绝对小时
    protected byte timingCloseHour = 0x7C;
    // 定时关0- 关,1- 开
    protected int timingCloseMark = 0;
    
    protected int upanddownSwing;
	
}
